<?php

class User_IndexController extends Zend_Controller_Action
{

    public function init()
    {
		// $this->_helper->layout()->setLayout('user_index');
        /* Initialize action controller here */
    }

    public function indexAction()
    {
	    $grfs = new Friendship_Model_Dbtable_RequestFriendship();
    	$array_fr = $grfs ->getrequestfriendships('10');
    	$this->view->array_id_fr = $array_fr;
	
	//echo "ddd";

		/* TODO: gan Id */
		$id=1;
		$like_user = 2;
		$post = new Posts_Model_DbTable_Posts();
        $this->view->post = $post->getListPostsByUser($id, $like_user);	
	
	
		$limit = 5;
		$start =0;
		$parent =0;
		$catego = new Categories_Model_DbTable_Categories();
		$this->view->Listscate = $catego->listAllCat($limit, $start, $parent);	
		
		
        // action body
    }
	
	public function registerAction()
	{
	
	}
	
	public function testAction()
	{
	
	}


}

